﻿@model Ecommerce.Areas.Manager.Models.Customer
@{
    ViewBag.Title = "Login";
}
<div id="detailProd" style="margin-right: 30px; margin-top: 0px;">
    <script type="text/javascript">
        $(document).ready(function () {

            $("input[value='register']").click(function () {

                window.location.href = "/Home/Customer/Register";
                return false;
            });
        });
    </script>
    <div class="block">
        <h4>Return customer</h4>
        <table style="padding: 10px;">
            <span class='field-validation-error'>@ViewBag.ErrMsg</span>
            @using (Html.BeginForm("Login", "Customer", new { checkout = true }, FormMethod.Post))
            {
                <tr>
                    <td style="width: 100px">Email</td>
                    <td>: @Html.EditorFor(model => model.Email) @Html.ValidationMessageFor(model => model.Email)</td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td>: @Html.PasswordFor(model => model.Password) @Html.ValidationMessageFor(model => model.Password)</td>
                </tr>
                <tr>
                    <td></td>
                    <td>&nbsp;&nbsp;<input type="submit" value="Login" />
                        &nbsp;<input type="button" value="register" /></td>
                </tr>
            }
        </table>
    </div>
</div>

